package com.easy.bean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public class Order implements Serializable {
    private static final long serialVersionUID = 1L;
    // 新增的属性
    private List<Order> list;
    @ExcelProperty("ID")
    private Integer id;
    @ExcelProperty("入库订单ID")
    private String in_id;
    @ExcelProperty("出库订单ID")
    private String out_id;
    @ExcelProperty("入库总价")
    private BigDecimal in_sums_price;
    @ExcelProperty("出库总价")
    private BigDecimal out_sums_price;
    @ExcelProperty("入库时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime in_date;
    @ExcelProperty("出库时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime out_date;
    @ExcelProperty("供应商")
    private String in_name;
    @ExcelProperty("销售商")
    private String out_name;
    @ExcelProperty("是否删除")
    private Integer is_del;
    @ExcelProperty("商品ID")
    private String product_id;
    @ExcelProperty("商品名称")
    private String product_name;
    @ExcelProperty("入库数量")
    private int in_num;
    @ExcelProperty("出库数量")
    private int out_num;
    @ExcelProperty("商品单位")
    private String util;
    @ExcelProperty("是否确认")
    private Integer isconfirm;
    @ExcelProperty("入库单价")
    private BigDecimal in_price;
    @ExcelProperty("出库单价")
    private BigDecimal out_price;
    @ExcelProperty("该商品入库总价")
    private BigDecimal in_sum_price;
    @ExcelProperty("该商品出库总价")
    private BigDecimal out_sum_price;
    @ExcelProperty("操作员工")
    private String user_name;

    // getter 和 setter 方法
    public List<Order> getList() {
        return list;
    }

    public void setList(List<Order> list) {
        this.list = list;
    }
    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public Integer getIsconfirm() {
        return isconfirm;
    }

    public void setIsconfirm(Integer isconfirm) {
        this.isconfirm = isconfirm;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getUtil() {
        return util;
    }

    public void setUtil(String util) {
        this.util = util;
    }

    public int getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIn_id() {
        return in_id;
    }

    public void setIn_id(String in_id) {
        this.in_id = in_id;
    }

    public String getOut_id() {
        return out_id;
    }

    public void setOut_id(String out_id) {
        this.out_id = out_id;
    }

    public BigDecimal getIn_sums_price() {
        return in_sums_price;
    }

    public void setIn_sums_price(BigDecimal in_sums_price) {
        this.in_sums_price = in_sums_price;
    }

    public BigDecimal getOut_sums_price() {
        return out_sums_price;
    }

    public void setOut_sums_price(BigDecimal out_sums_price) {
        this.out_sums_price = out_sums_price;
    }

    public LocalDateTime getIn_date() {
        return in_date;
    }

    public void setIn_date(LocalDateTime in_date) {
        this.in_date = in_date;
    }

    public LocalDateTime getOut_date() {
        return out_date;
    }

    public void setOut_date(LocalDateTime out_date) {
        this.out_date = out_date;
    }

    public String getIn_name() {
        return in_name;
    }

    public void setIn_name(String in_name) {
        this.in_name = in_name;
    }

    public String getOut_name() {
        return out_name;
    }

    public void setOut_name(String out_name) {
        this.out_name = out_name;
    }

    public Integer getIs_del() {
        return is_del;
    }

    public void setIs_del(Integer is_del) {
        this.is_del = is_del;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public int getIn_num() {
        return in_num;
    }

    public void setIn_num(int in_num) {
        this.in_num = in_num;
    }

    public int getOut_num() {
        return out_num;
    }

    public void setOut_num(int out_num) {
        this.out_num = out_num;
    }

    public BigDecimal getIn_price() {
        return in_price;
    }

    public void setIn_price(BigDecimal in_price) {
        this.in_price = in_price;
    }

    public BigDecimal getOut_price() {
        return out_price;
    }

    public void setOut_price(BigDecimal out_price) {
        this.out_price = out_price;
    }

    public BigDecimal getIn_sum_price() {
        return in_sum_price;
    }

    public void setIn_sum_price(BigDecimal in_sum_price) {
        this.in_sum_price = in_sum_price;
    }

    public BigDecimal getOut_sum_price() {
        return out_sum_price;
    }

    public void setOut_sum_price(BigDecimal out_sum_price) {
        this.out_sum_price = out_sum_price;
    }

    @Override
    public String toString() {
        return "Order{" +
                "list=" + list +
                ", id=" + id +
                ", in_id='" + in_id + '\'' +
                ", out_id='" + out_id + '\'' +
                ", in_sums_price=" + in_sums_price +
                ", out_sums_price=" + out_sums_price +
                ", in_date=" + in_date +
                ", out_date=" + out_date +
                ", in_name='" + in_name + '\'' +
                ", out_name='" + out_name + '\'' +
                ", is_del=" + is_del +
                ", product_id='" + product_id + '\'' +
                ", product_name='" + product_name + '\'' +
                ", in_num=" + in_num +
                ", out_num=" + out_num +
                ", util='" + util + '\'' +
                ", isconfirm=" + isconfirm +
                ", in_price=" + in_price +
                ", out_price=" + out_price +
                ", in_sum_price=" + in_sum_price +
                ", out_sum_price=" + out_sum_price +
                ", user_name='" + user_name + '\'' +
                '}';
    }
}
